package com.yami.shop.bean.model;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import java.util.Date;

/**
 * 零元购活动领取记录
 */
@Data
@TableName("tz_activity_receive_record")
public class ActivityReceiveRecord {

    @TableId()
    @Schema(description = "id")
    private Long id;

    @Schema(description = "用户id")
    private String userId;

    @Schema(description = "商品id")
    private int prodId;

    @Schema(description = "活动id")
    private int activityId;

    @Schema(description = "创建时间")
    private Date createTime;

    @Schema(description = "店铺id")
    private Long shopId;

    @Schema(description = "领取个数")
    private int receiveNum;

    @Schema(description = "领取状态默认0 已领取持仓未到  1 已领取持仓到账 2持仓到账失败")
    private int status;

    @Schema(description = "修改时间时间")
    private Date updateTime;

    @Schema(description = "失败原因")
    private String reason;

    @TableField(exist = false)
    private String prodName;

    @TableField(exist = false)
    private String pic;

    @TableField(exist = false)
    private String userName;
    @TableField(exist = false)
    private String userMobile;
}
